import pytest
from selenium import webdriver


@pytest.fixture(scope="session")
def wdriver():
    # 浏览器驱动
    wdriver = webdriver.Chrome()
    wdriver.implicitly_wait(5)
    wdriver.maximize_window()
    yield wdriver

    wdriver.quit()
